package com.usian.service.impl;

import com.usian.articles.Articles;
import com.usian.column.Vermicelli;
import com.usian.mapper.VermicelliMapper;
import com.usian.service.VermicelliService;
import com.usian.user.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VermicelliServiceImpl implements VermicelliService {

    @Autowired
    private VermicelliMapper vermicelliMapper;
    @Override
    public List<Vermicelli> getVermicelliList(Integer id) {
        return vermicelliMapper.getVermicelliList(id);
    }

    @Override
    public List<Articles> selectArticles(Integer concernId) {
        return vermicelliMapper.selectArticles(concernId);
    }

    @Override
    public User selectUserById(Integer concernId) {
        return vermicelliMapper.selectUserById(concernId);
    }


}